/**
 * @description 获取浏览器默认语言
 * @returns {String}
 */
export function getBrowserLanguage(): string {
  const browserLang = window.navigator.language;
  let defaultBrowserLang = "";
  if (["cn", "zh", "zh-cn"].includes(browserLang.toLowerCase())) {
    defaultBrowserLang = "zh";
  } else {
    defaultBrowserLang = "en";
  }
  return defaultBrowserLang;
}
